﻿
using Dora.Orm.Core.Domain.Entities;
using SqlSugar;
using System;

namespace Dora.Services.AdminUser.Entities
{
    /// <summary>
    /// sms记录表实体对象
    /// </summary>
    [SugarTable("sms_record")]
    public class SmsRecordEntity : Entity<Guid>
    {
        #region model


        /// <summary>
        /// 发送用户主键
        /// </summary>
        public Guid SendUserId { get; set; }

        /// <summary>
        /// 顶级机构Id;发送短信时用户所在toporgid
        /// </summary>
        public int TopOrgId { get; set; }

        /// <summary>
        /// 机构Id;发送短信时用户所在orgid
        /// </summary>
        public int OrgId { get; set; }

        /// <summary>
        /// 系统key
        /// </summary>
        public string SystemKey { get; set; }

        /// <summary>
        /// 短信模板类型
        /// </summary>
        public int TemplateType { get; set; }

        /// <summary>
        /// 发送人姓名
        /// </summary>
        public string SendName { get; set; }

        /// <summary>
        /// 接收人手机号
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 短信内容
        /// </summary>
        public string SmsContent { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime SendTime { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 失败原因
        /// </summary>
        public string FailReason { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        #endregion
        #region extend
        #endregion
    }
}
